package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectAllDeptDTO;
import com.itheima.tlias84.entity.Dept;
import com.itheima.tlias84.po.InsertDeptParam;
import com.itheima.tlias84.po.UpdateDeptParam;
import com.itheima.tlias84.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptService {
    List<SelectAllDeptDTO> selectAll();

    int insertDept(InsertDeptParam param);

    int deleteById(Integer id);

    UpdateDeptParam selectById(Integer id);

    ResultUtil updateById(Dept dept);

    int batchDelete(List<Integer> ids);
}
